
package http;

public class Main {


	public static void main(String[] args) throws Exception {
		System.out.println("Loading");
		
		Opentonesoap service = new OpentonesoapLocator();
		//((OpentonesoapLocator)soap).setMaintainSession(true);

        
/*
try {
		OpentonesoapPortType soap = service.getopentonesoapPort();
        } catch (javax.xml.rpc.ServiceException ex) {
            System.out.println("ouy");
        }  
*/

	
OpentonesoapPortType soap = service.getopentonesoapPort();



/*
		AuthenticateUserRequest req = new AuthenticateUserRequest("yyy","xxx","127.0.0.1");
		//AuthenticateUserResult res = soap.AuthenticateUserResult();
		AuthenticateUserResult res = soap.authenticateUser(req);
		System.out.println(res.getResponseNo());
		System.out.println(res.getResponseMessage());

*/
		
		AuthenticateUserResult res = soap.authenticateUser(new AuthenticateUserRequest("dondon.babao","G00dCall","127.0.0.1"));
		System.out.println(res.getResponseNo());
		System.out.println(res.getResponseMessage());
		System.out.println(res.getSessionUser());
		System.out.println(res.getSessionGroup());
		System.out.println(res.getSessionID());
		System.out.println(res.getDistributorInfo());
		System.out.println(res.getFirstName());
		System.out.println(res.getLastName());


	}

}